package com.cn.hotel.dao;

import com.cn.hotel.model.NewsModel;
import com.cn.hotel.model.NewsTypeModel;

import java.util.List;

public interface INewsDao {
    int getCount(NewsModel newsModel);

    List<NewsModel> findAll(NewsModel newsModel);

    int add(NewsModel newsModel);

    NewsModel findById(Integer temp);

    int newsEdit(NewsModel newsModel);

    int delete(Integer aa);
//以下前端
    List<NewsModel> getNewsModelList();

    List<NewsTypeModel> getNewsTypeModelList();

    List<NewsModel> getHomeNewsModelList();
}
